import base from '@/api/base'; // 导入接口域名列表
import axios from '@/api/http.js'; // 导入http中创建的axios实例

// 获取带班领导信息
export function getShiftLeader() {
  return axios({
    url: `${base}/dispatch/web/getShiftLeader`,
    method: 'GET'
  });
}

// 获取井下人数信息
export function getInWellPersonInfo() {
  return axios({
    url: `${base}/dispatch/web/inWellPersonInfo`,
    method: 'GET'
  });
}

// 获取24小时人数图表
export function get24HoursChart() {
  return axios({
    url: `${base}/dispatch/web/chart`,
    method: 'GET'
  });
}

// 获取人员构成信息
export function getPersonType() {
  return axios({
    url: `${base}/dispatch/web/getPersonType`,
    method: 'GET'
  });
}

// 获取所有工种
export function getAllType() {
  return axios({
    url: `${base}/dispatch/web/getAllType`,
    method: 'GET'
  });
}

// 获取人员详情信息带分页
export function queryPersonPage(data) {
  return axios({
    url: `${base}/dispatch/web/getPersonPage`,
    method: 'POST',
    data
  });
}

// 获取井下实时车辆数量
export function getUnderCarCount() {
  return axios({
    url: `${base}/dispatch/web/getUnderCarCount`,
    method: 'GET'
  });
}

// 获取近24小时车辆趋势分析
export function getUnderCarTrendInfo() {
  return axios({
    url: `${base}/dispatch/web/getUnderCarTrendInfo`,
    method: 'GET'
  });
}

// 获取井下车辆类型统计信息
export function getUnderCarTypeInfo() {
  return axios({
    url: `${base}/dispatch/web/getUnderCarTypeInfo`,
    method: 'GET'
  });
}

// 获取车辆列表下拉类型
export function getCarType() {
  return axios({
    url: `${base}/dispatch/web/getCarType`,
    method: 'GET'
  });
}

// 获取车辆列表信息
export function queryCarsInfo(data) {
  return axios({
    url: `${base}/dispatch/web/getCarsInfo`,
    method: 'POST',
    data
  });
}

// 获取安全监测及告警-瓦斯抽采
export function getWS() {
  return axios({
    url: `${base}/dispatch/web/getWS`,
    method: 'GET'
  });
}

// 获取安全监测及告警-水文监测
export function queryAlarmHy(data) {
  return axios({
    url: `${base}/dispatch/web/alarmHy`,
    method: 'POST',
    data
  });
}

// 顶板监测
export function getDBJC() {
  return axios({
    url: `${base}/dispatch/web/getDBJC`,
    method: 'GET'
  });
}

// 告警统计
export function queryAlarmCount(data) {
  return axios({
    url: `${base}/dispatch/web/alarmCount`,
    method: 'POST',
    data
  });
}

// 获取安全监测及告警-累计告警类型分析
export function queryAlarmTypeCount(data) {
  return axios({
    url: `${base}/dispatch/web/alarmTypeCount`,
    method: 'POST',
    data
  });
}

// 获取安全监测及告警-近30天告警趋势分析
export function queryAlarmLine30Count(data) {
  return axios({
    url: `${base}/dispatch/web/alarmLine30Count`,
    method: 'POST',
    data
  });
}

// 获取安全监测及告警-告警类型
export function getAlarmType() {
  return axios({
    url: `${base}/dispatch/web/alarmType`,
    method: 'GET'
  });
}

// 获取安全监测及告警-告警记录
export function queryAlarmRecords(data) {
  return axios({
    url: `${base}/dispatch/web/alarmRecords`,
    method: 'POST',
    data
  });
}
